﻿namespace TestByWire.Test.Fakes
{
    public class CalculatorResult
    {
        public CalculatorResult(int result)
        {
            Result = result;
        }

        public int Result { get; private set; }
    }

    public interface ICalculator
    {
        int Add(int a, int b);
		string AddAsText(int a, int b);
        CalculatorResult CompositeAdd(int a, int b);
    }

    internal class Calculator
    {
        public int Add(int a, int b)
        {
            return a + b;
        }

        public CalculatorResult CompositeAdd(int a, int b)
        {
            return new CalculatorResult(a + b);
        }
    }
}
